﻿@namespace MudBlazor
@inherits MudComponentBase

@if (ReadOnly)
{
    <span class="@ClassName" style="@Style">
        <MudIcon Icon="@ItemIcon" Size="@Size"></MudIcon>
    </span>
}
else
{
    <span class="@ClassName" style="@Style" @onmouseover="HandleMouseOver" @onclick="HandleClick" @onmouseout="HandleMouseOut ">
        <input class="mud-rating-input" type="radio" value="@ItemValue" name="@Rating?.Name" disabled="@Disabled" checked="@(IsChecked)" @attributes="UserAttributes" />
        <MudIcon Icon="@ItemIcon" Size="@Size"></MudIcon>
    </span>
}
